import request from '@/utils/request'

// 获取报警记录列表
export const getAlarmList = () => {
  return request({
    url: '/alert',
    method: 'get'
  })
}

// 根据站点ID查询报警记录
export const getAlarmBySiteId = (siteId) => {
  return request({
    url: `/alert/${siteId}`,
    method: 'get'
  })
} 